package com.example.safeassistan.home.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.hiddendanger.model.DepartMentAllModel;

import java.util.List;

public class AuthorizedepartmentAdapter extends BaseQuickAdapter<DepartMentAllModel.ResultDTO,BaseViewHolder> {
    public AuthorizedepartmentAdapter(@Nullable List<DepartMentAllModel.ResultDTO> data) {
        super(R.layout.item_common_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DepartMentAllModel.ResultDTO item) {
        helper.setText(R.id.tvText,item.getName());
    }


}
